Skip to content

fix: migrate to WebKitGTK 4.1 for modern Linux distributions (#9450)#10278

Open
jijinbei wants to merge 5 commits intobambulab:masterfrom
jijinbei:fix/webkitgtk-4.1-migration
Open

fix: migrate to WebKitGTK 4.1 for modern Linux distributions (#9450)#10278
jijinbei wants to merge 5 commits intobambulab:masterfrom
jijinbei:fix/webkitgtk-4.1-migration

Conversation

@jijinbei
Copy link
Copy Markdown

Summary

Fixes #9450. Migrates Linux build from WebKitGTK 4.0 (libsoup2, EOL) to 4.1 (libsoup3), and replaces the removed webkit_web_view_run_javascript API with webkit_web_view_evaluate_javascript (WebKit 2.40+).

Changes

  • linux.d/debian, linux.d/fedora — require libwebkit2gtk-4.1-dev / webkit2gtk4.1-devel unconditionally (drop the old version branches).
  • Containerfilelibwebkit2gtk-4.0-dev4.1-dev, libsoup2.4-devlibsoup-3.0-dev. Base ubuntu:22.04 unchanged (jammy-updates provides 4.1).
  • src/slic3r/GUI/Widgets/WebView.cppextern decl + RunScript() migrated to evaluate_javascript / evaluate_javascript_finish (returns JSCValue*, freed via g_object_unref).

Compatibility

Drops Ubuntu 20.04 / Debian 11 (EOL, WebKitGTK 4.0 only). Ubuntu 22.04+ (via jammy-updates), 24.04+, Fedora 40+, and Flatpak org.gnome.Platform//48 all supported.

Testing

Runtime — AppImage launched on

Ubuntu 25.10 is the bare-metal host that originally reproduced #9450. The other three are GNOME Boxes VM desktops.

Host Type Environment
Ubuntu 25.10 bare-metal GNOME 49 / WebKitGTK 2.50 (#9450 reproducer — crash gone)
Ubuntu 24.04 LTS VM (Boxes) GNOME 46 / WebKitGTK 2.44
Ubuntu 22.04 LTS VM (Boxes) GNOME 42 / WebKitGTK 2.50 (jammy-updates)
Fedora 42 VM (Boxes) GNOME 48 / WebKitGTK 2.48 (matches Flatpak Platform 48)
Ubuntu25 Ubuntu22 Fedora42

CI / compile

Fork's build_all green on ubuntu-22.04, ubuntu-24.04, windows-latest, macos-15-intel, macos-15 (arm64). Fedora 40 compile via podman also succeeds with correct 4.1 / libsoup-3.0 linkage.

Follow-up: Flatpak manifest

flathub/com.bambulab.BambuStudio is managed separately. To fully close #9450 for Flathub users, could a maintainer please update the manifest so the packaged runtime matches this PR (runtime-version: '48', any libsoup2.4 / webkit2gtk-4.0 module references switched to the 3.0 / 4.1 variants) and republish?

jijinbei and others added 5 commits April 18, 2026 16:14
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@lanewei120 lanewei120 requested a review from MackBambu May 6, 2026 02:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Crash on startup with Flatpak + GNOME Platform 48

1 participant